package com.landgroup.hradmin.mq.listener;

import javax.jms.JMSException;
import javax.jms.Message;
import javax.jms.Session;

import org.apache.log4j.Logger;
import org.springframework.jms.listener.SessionAwareMessageListener;

public class CoreMsgListener  implements SessionAwareMessageListener {
	private static Logger log = Logger.getLogger(CoreMsgListener.class);
	@Override
	public void onMessage(Message message, Session session) throws JMSException {
		log.info("###NoResult "+message);
		
	}

	
	public String OnResultMessage(String message) throws JMSException {
		log.info("###OnResult "+message);
		return "SUCCESS @ "+message;
	}
}
